//paraName 为被查找的参数名称
function GetUrlParam(paraName) {
    const url = document.location.toString();
    const arrObj = url.split("?");
    if (arrObj.length > 1) {
        const arrPara = arrObj[1].split("&");
        for (let i = 0; i < arrPara.length; i++) {
            let arr = arrPara[i].split("=");
            if (arr != null && arr[0] === paraName) {
                return arr[1];
            }
        }
        return null;
    }
    else {
        return null;
    }
}